
function addRetrieval() {
    var data = {
        personLiableName:$("#personLiableName").val,
        personLiablePhone:$("#personLiablePhone").val,
        teamName:$("#teamName").val,
        teamDesc:$("#teamDesc").val,
        inspectState:$('#type option:selected') .val(),
        inspectStartResult:$("#inspectStartResult").val
    };

    //1.质量检测，2.安全检测
    $.ajax({
        url :   "http://localhost:8080/userCore/inspect/addinspect",
        type:   "post",
        data:JSON.stringify(data),
        contentType:"application/json;",
        beforeSend: function(request) {
            request.setRequestHeader("token", "eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiIxMSIsImlhdCI6MTUzMzY5MDUyOSwic3ViIjoiMTEs5p2O6ICB5piOLDAsMiwxIiwiZXhwIjoxNTMzNjk3NzI5fQ.KXXIm8yMWYCXwyARJGiecoqXsO1eqU7vpFW3Jr7xDH0");
        },
        success:function(data) {
            alert(data.msg);
        }
    });
}

function queryRetrievalDetail(inspectId) {
    $.ajax({
        url :   "http://localhost:8080/userCore/inspect/getinspect",
        type:   "post",
        data:JSON.stringify({inspectId:inspectId}),
        contentType:"application/json;",
        success:function(data) {
            alert(data.msg);
        }
    });
}